package org.yellow.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import org.yellow.backend.pojo.medicine;

@Repository
@SuppressWarnings({"all"})
public interface medicineMapper extends BaseMapper<medicine> {
    @Update("update medicines set stock_quantity=stock_quantity+#{volume} where medicine_name =#{medicineName}")
    boolean decreaseStock(int volume, String medicineName);
}
